package eleanor.ltd.isRealEstate.entities.pages.action;

import javax.persistence.AssociationOverride;
import javax.persistence.AssociationOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.apache.tapestry5.beaneditor.NonVisual;

import eleanor.ltd.isRealEstate.entities.action.Action;
import eleanor.ltd.isRealEstate.entities.pages.Pages;

@Entity
@Table(name = "pagesAction")
public class PagesAction {
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@NonVisual
	@Column(name = "paid")
	private Long paid;
	@ManyToOne(optional = false)
	@JoinColumn(name = "aid")
	private Action action;
	@ManyToOne(optional = false)
	@JoinColumn(name = "pid")
	private Pages pages;
	
	public Long getPaid() {
		return paid;
	}
	public void setPaid(Long paid) {
		this.paid = paid;
	}
	public Action getAction() {
		return action;
	}
	public void setAction(Action action) {
		this.action = action;
	}
	public Pages getPages() {
		return pages;
	}
	public void setPages(Pages pages) {
		this.pages = pages;
	}
	
	
	
}
